@layout("/common/_container.html",{js:["/assets/modular/system/btyCwHuopei/btyCwHuopei.js"],css:["/assets/common/css/beautiful.css"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">货赔表管理</span>
</div>
<style>
    .layui-layer-setwin {
        position: absolute;
        right: 42px !important;
        *right: 0;
        top: 35px!important;
        font-size: 0;
        line-height: initial;
    }
    /* .layui-btn+.layui-btn {
        margin-left: 11px;
        margin-block: 5px;
    } */
</style>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
                            <!-- <div class="layui-inline"> -->
                                <div class="layui-inline">
                                    <label class="layui-form-label">日期</label>
                                    <div class="layui-inline lablew">
                                        <input id="startTime" name="startTime" placeholder="请选择日期" type="text" class="layui-input" autocomplete="off"/>
                                    </div>
                                    <span>至</span>
                                    <div class="layui-inline lablew">
                                        <input id="endTime" name="endTime" placeholder="请选择日期" type="text" class="layui-input" autocomplete="off"/>
                                    </div>
                                </div>
<!--                                 
                                
                            </div> -->
                            <div class="layui-inline">
                                <label class="layui-form-label" id="md_sx">门店</label>
                                <div class="layui-input-inline" style="height: 30px !important;width: 300px;">
                                    <select xm-select="scmCode" lay-filter="scmCode" id="scmCode" name="scmCodes"
                                            xm-select-search="" xm-select-show-count="1" 
                                            xm-select-search-type="dl" size="small">
                                        <option value="">请选择</option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-inline">
                                @if(shiro.hasPermission("/btyCwHuopei/synHp")){
                                <button id="btnSyncHp" class="layui-btn layui-btn-sm txbtn">获取货赔数据</button>
                                @}
                                <button id="btnSyncMdHp" class="layui-btn layui-btn-sm txbtn">获取门店货赔数据</button>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">城市选择</label>
                                <div class="layui-inline lablew">
                                    <select name="provinceName" lay-filter="provinceName" id="provinceName" lay-search="">
                                        <option value=''>全部省</option>
                                    </select>
                                </div>
                            </div>
                            <span>市</span>
                            <div class="layui-inline">
                                <div class="layui-inline lablew">
                                    <select name="cityName" lay-filter="cityName" id="cityName" lay-search="">
                                        <option value=''>全部市</option>
                                    </select>
                                </div>
                            </div>

                            <div class="layui-inline">
                                <label class="layui-form-label">店名</label>
                                <div class="layui-inline lablew">
                                    <input id="shopName" class="layui-input" type="text" placeholder="请输入店名" autocomplete="off"/>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">日期</label>
                                <div class="layui-inline lablew">
                                    <input id="date" class="layui-input" type="text" autocomplete="off" placeholder="日期"/>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">酒水卖价</label>
                                <div class="layui-inline lablew">
                                    <select id="priceSta"  name="priceSta" lay-filter="priceSta" lay-search="">
                                        <option value="">全部</option>
                                        <option value="0">有</option>
                                        <option value="1">无</option>
                                    </select>
                                </div>
                            </div>

                            <div class="layui-inline">
                                <label class="layui-form-label">货赔</label>
                                <div class="layui-inline lablew">
                                    <select id="hpSta"  name="hpSta" lay-filter="hpSta" lay-search="">
                                        <option value="">全部</option>
                                        <option value="0">有</option>
                                        <option value="1">无</option>
                                    </select>
                                    <!--                            <input id="className" name="className" placeholder="请输入品项类别名称" type="text" class="layui-input" lay-verify="required" required/>-->
                                </div>
                            </div>
                            <div class="layui-inline">
                                <button id="btnSearch" class="layui-btn layui-btn-sm">搜索</button>
                                <button id="btnReset" class="layui-btn layui-btn-primary layui-btn-sm reset gzbtn">重置</button>
                            </div>
                            
                            <!--                                <button id="btnAdd" class="layui-btn layui-btn-sm"><i class="layui-icon">&#xe654;</i>添加</button>-->
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <button id="btnExp" class="layui-btn layui-btn-sm">导出</button>
                                <button id="btnExcel" class="layui-btn layui-btn-sm">导入Excel</button>
                                <!-- <button id="btnEditJs" class="layui-btn layui-btn-sm txbtn">同步酒水价格</button> -->
                                <button id="btnEditPrice" class="layui-btn layui-btn-sm txbtn">同步货赔单价</button>
                                <button id="btnEditHp" class="layui-btn layui-btn-sm txbtn">计算货赔合计</button>
                                <button id="btnMsg" class="layui-btn layui-btn-sm txbtn">发送门店</button>
                            </div>
                        </div>
                    </div>
                    <table class="layui-table" id="btyCwHuopeiTable" lay-filter="btyCwHuopeiTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="tableBar">
<!--    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">修改</a>-->
<!--    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>-->
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">门店货赔情况</a>
<!--    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="editJs">同步酒水价格</a>-->
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="editHp">同步货赔单价</a>
</script>
@}